home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 2 / Mac_Expert_2.iso / Applications / T-Script v3.0 / T-Script APD, PPD for Aldus / TScript.apd next >
Encoding:
Aldus Printer Driver  |  1991-12-13  |  10.7 KB  |  261 lines  |  [TEXT/ALD4]

  1. @Comment: TScript.apd
  2. @Comment: Aldus Printer Description (APD) file.
  3. @Comment:         $Revision:   1.0  $
  4. @Comment:        $Date:   13 Dec 1991 10:42:44  $
  5. @Comment: This APD produced for use with Aldus PageMaker 4.0 or earlier version.
  6. @Comment: Keyword values are currently limited to 255 characters in length.
  7.  
  8. @Comment: This APD matches PageMaker's built-in General APD. Changes should be concurrent.
  9.  
  10. @FormatVersion: "1.0"
  11. @Comment: Cause no warning message:
  12. @Product: "(TScript)"
  13. @PSVersion: "(47.0)"
  14. @PSRevision: "0"
  15.  
  16. @Comment: Assume 300 dpi laser printer:
  17. @Resolution: "300 300"
  18.  
  19. @AllowComments: "true"
  20. @AllowVMQuery: "true"
  21.  
  22. @Comment:  "FreeVM" value is equivalent to vmstatus "maximum" minus "used" values
  23. @Comment: Use value for LaserWriter:
  24. @FreeVM: "150000"
  25. @WorkingMem: "20000"
  26. @AldusHeaderMem: "34000"
  27.  
  28. @Comment: PatchFile is sent right after %%EndComments, AldusPatchFile right before %%EndSetup.
  29. @PatchFile: "statusdict begin 0 setjobtimeout end userdict /AldusDict known {(A previous version PageMaker header is loaded.) = flush} if"
  30. @AldusPatchFile: ""
  31. @ExitServer: "serverdict begin exitserver "
  32. @Password: "0"
  33.  
  34. @ScreenFreq: ""
  35. @ScreenAngle: ""
  36. @ScreenProc: ""
  37. @Comment: Use inverting screen proc from Lino, not LaserWriter:
  38. @InvertScreenProc: "{abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul 
  39. add 1 exch sub}{dup mul exch dup mul add 1 sub} ifelse}"
  40. @End
  41. @Transfer: ""
  42. @InvertTransfer: "{1 exch sub}"
  43.  
  44. @Comment:  Use normalized transfer for LaserWriter:
  45. @NormalizedTransfer: "{
  46. mark
  47. 1.0 1.0 .98 .9 .82 .68 .56 .48 .28 .1 .06 .0
  48. counttomark dup 3 add -1 roll exch
  49. 2 sub mul dup floor cvi
  50. dup 3 1 roll sub
  51. exch dup 
  52. 3 add index exch 2 add index dup
  53. 4 1 roll
  54. sub mul add
  55. counttomark 1 add 1 roll 
  56. cleartomark
  57. } bind"
  58. @End
  59.  
  60. @InvertNormalizedTransfer: "{
  61. mark
  62. .0 .0 .06 .1 .28 .48 .56 .68 .82 .9 .98 1.0
  63. counttomark dup 3 add -1 roll exch
  64. 2 sub mul dup floor cvi
  65. dup 3 1 roll sub
  66. exch dup 
  67. 3 add index exch 2 add index dup
  68. 4 1 roll
  69. sub mul add
  70. counttomark 1 add 1 roll 
  71. cleartomark
  72. } bind"
  73. @End
  74.  
  75. @Comment: Allow for optional file system:
  76. @?FontList: "save FontDirectory { pop = flush } forall
  77. systemdict /filenameforall known {userdict /SC 100 string put
  78. (fonts/*) {dup length 6 sub 6 exch getinterval = flush} SC filenameforall} if
  79. (*) = flush restore"
  80. @End
  81.  
  82.  
  83. @Comment: If 11 or more saves, VM query makes memory look full, PM will flush fonts.
  84. @?VMStatus: "vmstatus 3 -1 roll dup 10 gt
  85. {3 1 roll exch pop dup} {3 1 roll} ifelse == == == flush"
  86. @End
  87.  
  88. @?OutputOrder: "statusdict /pagestackorder known
  89. {statusdict /pagestackorder get exec {(facedown)}{(faceup)}
  90. ifelse}{(faceup)}ifelse = flush"
  91. @End
  92.  
  93. @Comment: Paper tray query compares returned value with selected PageSize,
  94. @Comment:    up to length of returned value only: i.e, "A4" matches "A4small"
  95. @?PaperTray: "mark () statusdict /printerstatus known {
  96. userdict /T statusdict /printerstatus get exec 16#07E and put 
  97.  T 2 eq {(A4)} if T 8 eq {(Letter)} if T 24 eq {(Legal)} if} if 
  98.  = flush cleartomark"
  99. @End
  100.  
  101. @Comment: PageSize options appear in the "Paper" list box in the Printer-specific dialog.
  102. @DefaultPageSize: "Letter"
  103. @PageSize Letter: "letter"
  104. @PageSize A4: "userdict /a4 known {a4} {letter} ifelse"
  105. @PageSize Legal: "userdict /legal known {legal} {letter} ifelse"
  106. @PageSize Tabloid: "userdict /tabloid known {tabloid} {letter} ifelse"
  107. @PageSize A3: "userdict /a3 known {a3} {letter} ifelse"
  108. @PageSize B5: "userdict /b5 known {b5} {letter} ifelse"
  109.  
  110. @Comment: PageRegion gives the printable area of each paper option.
  111. @PageRegion Letter:     "0 0 576 768"
  112. @PageRegion A4:         "0 0 560 798"
  113. @PageRegion Legal:         "0 0 576 992"
  114. @PageRegion Tabloid:    "0 0 756 1208"
  115. @PageRegion A3:            "0 0 806 1176"
  116. @PageRegion B5:            "0 0 464 702"
  117.  
  118. @Comment: PaperDimension gives the total paper size of each option.
  119. @PaperDimension Letter:         "612 792"
  120. @PaperDimension A4:             "595 842"
  121. @PaperDimension Legal:             "612 1008"
  122. @PaperDimension Tabloid:        "792 1224"
  123. @PaperDimension A3:                "842 1190"
  124. @PaperDimension B5:                "499 709"
  125.  
  126. @Comment: PaperTray commands are executed when available, except that PageSize commands 
  127. @Comment:        are used when manual feed is selected.
  128. @PaperTray Letter:     "statusdict /lettertray known {statusdict begin lettertray end} {letter} ifelse"
  129. @PaperTray A4:     "statusdict /a4tray known {statusdict begin a4tray end} 
  130. {userdict /a4 known {a4} {letter} ifelse} ifelse"
  131. @End
  132. @PaperTray Legal:     "statusdict /legaltray known {statusdict begin legaltray end} 
  133. {userdict /legal known {legal} {letter} ifelse} ifelse"
  134. @End
  135.  
  136. @DefaultOutputOrder: "faceup"
  137.  
  138. @ManualFeed true: "statusdict /manualfeed known {statusdict /manualfeed true put} if"
  139. @ManualFeed false: "statusdict /manualfeed known {statusdict /manualfeed false put} if"
  140.  
  141. @Comment: Use LaserWriter Plus fonts, except include both Helvetica-Narrow 
  142. @Comment:        and Helvetica-Condensed, to prevent downloading:
  143.  
  144. @DefaultFont: "Courier"
  145. @Font "Times-Roman": "Standard" "(001.000)"
  146. @Font "Times-Bold": "Standard" "(001.000)"
  147. @Font "Times-Italic": "Standard" "(001.000)"
  148. @Font "Times-BoldItalic": "Standard" "(001.000)"
  149. @Font "Helvetica": "Standard" "(001.000)"
  150. @Font "Helvetica-Bold": "Standard" "(001.000)"
  151. @Font "Helvetica-Oblique": "Standard" "(001.000)"
  152. @Font "Helvetica-BoldOblique": "Standard" "(001.000)"
  153. @Font "Courier": "Standard" "(001.000)"
  154. @Font "Courier-Bold": "Standard" "(001.000)"
  155. @Font "Courier-Oblique": "Standard" "(001.000)"
  156. @Font "Courier-BoldOblique": "Standard" "(001.000)"
  157. @Font "Symbol": "Standard" "(001.000)"
  158. @Font "Helvetica-Narrow": "Standard" "(001.000)"
  159. @Font "Helvetica-Narrow-Oblique": "Standard" "(001.000)"
  160. @Font "Helvetica-Narrow-Bold": "Standard" "(001.000)"
  161. @Font "Helvetica-Narrow-BoldOblique": "Standard" "(001.000)"
  162. @Font "Helvetica-Condensed": "Standard" "(001.000)"
  163. @Font "Helvetica-Condensed-Oblique": "Standard" "(001.000)"
  164. @Font "Helvetica-Condensed-Bold": "Standard" "(001.000)"
  165. @Font "Helvetica-Condensed-BoldOblique": "Standard" "(001.000)"
  166.  
  167. @Comment: PrinterWarning beeps and displays the translation string in the status line.
  168. @Comment: Parameter substitution of printer name for "^2" is not allowed in "...Alert" messages!
  169. @PrinterWarning    "%%[ PrinterError: paper \where\ misfeed, \num\ pages may be lost ]%%"
  170.                 : "Printer “^2” needs attention: paper jam."
  171. @PrinterWarning    "%%[ PrinterError: recorder not responding\code\]%%"
  172.                 : "Printer “^2” needs attention: recorder not responding \code\"
  173. @PrinterWarning    "%%[ PrinterError: \Reason\ ]%%"
  174.                 : "Printer “^2” needs attention: \Reason\."
  175.  
  176. @ParameterReason    "no paper tray" :         "no paper tray"
  177. @ParameterReason    "out of paper" :         "out of paper"
  178. @ParameterReason    "cover open" :             "cover open"
  179. @ParameterReason    "warming up" :             "warming up"
  180. @ParameterReason    "service call" :         "service call"
  181. @ParameterReason    "resetting printer" :     "resetting printer"
  182. @ParameterReason    "cover open" :             "cover open"
  183. @ParameterReason    "timeout, clearing printer" : "timeout"
  184. @ParameterReason    "timeout" :             "timeout"
  185. @ParameterReason    "manual feed timeout" : "manual feed timeout"
  186. @ParameterReason    "no toner cartridge" :     "no toner cartridge"
  187. @ParameterReason    "paper exit jam" :        "paper exit jam"
  188. @ParameterReason    "poor fusing set" :        "fuser unit error or cover open"
  189. @ParameterReason    "tray cover open" :        "tray cover open or no paper tray"
  190. @ParameterReason    "poor developer set" :    "developer unit error or cover open"
  191. @ParameterReason    "paper transporter jam" :    "paper transporter jam"
  192. @ParameterReason    "-- Cover open" :         "cover open"
  193. @ParameterReason    "Call key operator" :     "call key operator"
  194. @ParameterReason    " Set Paper Stack" :     "adjust size of output bin"
  195. @ParameterReason    "out of toner" :        "out of toner"
  196. @ParameterReason    "PC life" :            "PC cartridge expired"
  197. @ParameterReason    "no cartrige" :        "no PC cartridge"
  198. @ParameterReason    "heater not ready" :             "cover open"
  199.  
  200.  
  201. @Comment: The order of occurrence determines the order of parsing; put general messages last.
  202. @PrinterWarning        "\s\status: PrinterError: recorder not responding\code\; source: \source\"
  203.                 : "Printer “^2” needs attention: recorder not responding \code\."
  204. @PrinterWarning         "\s\status: PrinterError: \Reason\; source: \source\"
  205.                 : "Printer “^2” needs attention: \Reason\."
  206. @PrinterWarning        "\s\status: PrinterError: \Reason\; source: \source\"
  207.                 : "Printer “^2” needs attention: \Reason\."
  208.  
  209. @Comment: PrinterMessage displays the translation string in the status line.
  210. @PrinterMessage     "job: \username\; document: \jobname\; status: \Status\; source: \source\"
  211.                 : "User: \username\;  document: \jobname\;  status: \Status\."
  212. @PrinterMessage     "job: \jobname\; status: \Status\; source: \source\"
  213.                 : "Document: \jobname\;  status: \Status\."
  214. @PrinterMessage     "status: \Status\; source: \source\"
  215.                 : "Status: \Status\."
  216. @PrinterMessage     "\Font1\ not found, using \Font2\"
  217.                 : "Font \Font1\ is not found on ^2, substituting \Font2\"
  218.  
  219. @ParameterStatus     "idle"    : "idle"
  220. @ParameterStatus     "busy"    : "processing job"
  221. @ParameterStatus     "waiting"    : "preparing data"
  222. @ParameterStatus    "printing"    : "printing"
  223.  
  224. @Comment: a null translation string causes no message to display.
  225. @PrinterMessage    "%%[ exitserver: permanent state may be changed ]%%"
  226.                 : ""
  227. @PrinterMessage    "%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%"
  228.                 : ""
  229.  
  230. @Comment: PrinterWarningAlert displays translation string in a warning-alert box and continues.
  231. @PrinterWarningAlert "A previous version PageMaker header is loaded."
  232.     : "Printer performance may improve if you do not print with PageMaker version 1.2 on this net."
  233.  
  234. @Comment: PrinterErrorAlert displays translation string in a stop-alert box and aborts printing.
  235. @PrinterErrorAlert    "%%[ Error: rangecheck; OffendingCommand: \Tray\tray ]%%\s\"
  236.                 : "Please place the \Tray\ paper tray in your printer, and print again."
  237.  
  238. @ParameterTray     "letter" : "Letter"
  239. @ParameterTray     "a4" : "A4"
  240. @ParameterTray     "legal" : "Legal"
  241.  
  242. @PrinterErrorAlert    "%%[ Error: \fonterror\; OffendingCommand: fontdownload ]%%"
  243.                 : "The font being downloaded has not been initialized for this printer."
  244. @PrinterErrorAlert    "%%[ Error: VMerror; OffendingCommand: \operator\ ]%%"
  245.                 : "Printer memory exceeded; turn printer off and on, or print smaller sections of the document."
  246. @PrinterErrorAlert    "%%[ Error: timeout; OffendingCommand: \operator\ ]%%"
  247.                 : "The printer had to wait too long, and went on to the next job; try again."
  248. @PrinterErrorAlert    "%%[ Error: \error\; OffendingCommand: \operator\ ]%%"
  249.                 : "Cannot print due to PostScript error: “\error\,” in command: “\operator\.”"
  250. @PrinterErrorAlert    "Fatal system error \error\"
  251.                 : "The printer has encountered an error. Simplify your document or try again."
  252. @Comment: "uncaught exception 7":
  253. @PrinterErrorAlert    "%%[\s\ncaught\s\]%%"
  254.                 : "The disk in your printer may need reinitializing - call your dealer."
  255. @PrinterErrorAlert    "%%[ Error: ioerror; OffendingCommand: filenameforall ]%%"
  256.                 : "The disk in your printer may need reinitializing - call your dealer."
  257.  
  258.  
  259.  
  260.  
  261.